<!DOCTYPE html>
<html lang="zh-cmn-Hans"
      xmlns:th="http://www.thymeleaf.org" th:with="title='错误'">
<head th:replace="common/head :: common_header(~{::link},~{::script})">
    <link type="text/css" rel="stylesheet" th:href="@{/web/common/error.css}"/>
</head>

<body>
<div class="alert alert-info">
    <div class="index-top">
        <div class="z">
            <div class="top-icon">
                <img th:src="@{/images/logo.png}"/>
            </div>
            <span class="top-title">江苏税务大数据平台</span>
        </div>
    </div>
    <div style="overflow: hidden;margin-top: 10%;">
        <div class="div_1">
            <img th:src="@{/images/error/500.png}">
        </div>
        <div class="div_2">
            <h1 th:utext="${'错误代码:'+code}"></h1>
            <h2 id="xxtx" th:utext="${'错误消息:'+msg}"></h2>
            <p id="errorMsg" th:text="${'详细内容:' + repData}" style="display: none"></p>
            <hr/>
            <button type="button" class="btn btn-outline-primary" onclick="goHomePage()">返回首页</button>
        </div>
    </div>
</div>
<input type="hidden" id="home_url" th:value="@{${#servletContext.getAttribute('web.login.url')}}"/>
</body>
<script type="application/javascript">
    function goHomePage() {
        if (self !== top) {
            parent.outDeleteTab();
        }else{
            window.location = document.getElementById('home_url').value;
        }
    }
</script>
</html>

